/**

 @Name：用户管理
 @Author：xuqipeter
 @Site：http://blog.xuziyu.cn/
    
 */

layui.define(['table', 'layer', 'm-utils', 'form', 'admin', 'view'], function (exports) {
  var $ = layui.$,
    table = layui.table,
    layer = layui.layer,
    admin = layui.admin,
    view = layui.view,
    form = layui.form,
    setter = layui.setter,
    baseUrl = setter.baseUrl,
    ossUrl = setter.ossUrl,
    utils = layui['m-utils'];
  var IndexModel = {
    /* 获取主页接口 */
    _home({
      callback
    }) {
      admin.req({
        url: `${baseUrl}admin/home`,
        data: {},
        dataType: 'json',
        done: function (res) {
          callback && callback(res)
        }
      })
    },
  }

  exports('IndexModel', IndexModel)
})